<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--框架必需start-->
<script type="text/javascript" src="/staff_vehicle/js/jquery-1.4.js"></script>
<script type="text/javascript" src="/staff_vehicle/js/framework.js"></script>
<link href="/staff_vehicle/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link  rel="stylesheet" type="text/css" id="skin" prePath="/staff_vehicle/"/>
<!--框架必需end-->

<!--截取文字start-->
<script type="text/javascript" src="/staff_vehicle/js/text/text-overflow.js"></script>
<!--截取文字end-->

<!--修正IE6支持透明PNG图start-->
<script type="text/javascript" src="/staff_vehicle/js/method/pngFix/supersleight.js"></script>
<!--修正IE6支持透明PNG图end-->

<script>

	function tiaoz(visitorId,vehicleId,vcarInTime){
		top.Dialog.open({URL:"qVVisitor!viewOneVehVisitorAllInfo?visitorId="+visitorId+"&vehicleId="+vehicleId+"&inTime="+vcarInTime,Title:"详细信息"});

	}
	/*
	window.onload = function() {
    var tagP = document.getElementsByTagName("tr");// 获取所有P标签元素
    for (var i = 0, len = tagP.length; i < len; i++) {
    var thisID = tagP[i].id;
    tagP[i].onclick = function() {// 给P标签添加onclick事件
      alert(thisID);
      top.Dialog.open({URL:"admin/info_amend.jsp",Title:"普通窗口"});
    };
  }
}*/
</script>
</head>


<body>

<div class="box_tool_mid padding_right5">
	<div class="center">
	<div class="left">
	<div class="right">
		<div class="padding_top8 padding_left10">
		<form action="qVVisitor" method="post">
		<table>
			<tr>
				<td>来访时间：</td>
				<td><input type="text" class="date" name="vcarInTime"  dateFmt="yyyy-MM-dd HH:mm:ss"/></td>
				<td><input type="hidden" class="date" name="vcarOffTime"/></td>
				<td>车牌号：</td>
				<td><input type="text" name="vehicleId"/></td>
				<!--
				<td>
					<label for="checkbox-1" >全站搜索</label><input type="checkbox" id="checkbox-1" value="0"/>
				</td>
				 -->
				<td><button type="submit"><span class="icon_find">查询</span></button></td>
			</tr>
		</table>
		</form>
		</div>
	</div>
	</div>
	</div>
</div>

<div id="scrollContent" class="border_gray">
	<table class="tableStyle">
		<tr>
			<th width="15%">访客ID</th>
			<th width="15%">被访者ID</th>
			<th width="15%">车牌号</th>
			<th width="15%">车类型</th>
			<th width="18%">来访时间</th>
			<th width="17%">离开时间</th>
			<th width="10%">操作</th>
		</tr>
		<s:iterator value="vehVisitorMPDataList" var="vcarTable" status="status">
		<s:if test="vcarTable!=null">
		             <tr>
		                <td><s:property value="vcarTable.visitorId" /> </td>
                        <td><s:property value="vcarTable.respondentId " /></td>
                        <td><s:property value="vehicle.vehicleId" /></td>
                        <td><s:property value="vehicle.type" /></td>
                        <td><s:date name="vcarTable.vcarInTime" format="yyyy-MM-dd HH:mm:ss"/> </td>
                        <td><s:date name="vcarTable.vcarOffTime" format="yyyy-MM-dd HH:mm:ss"/> </td>
                        <td><input type="button" onclick="tiaoz('${vcarTable.visitorId}','${vehicle.vehicleId}','${vcarTable.vcarInTime}')" value="更多》"/></td>
                    </tr>
        </s:if>
         </s:iterator>
	</table>
</div>


<div style="height:35px;">
	<div class="float_left padding5">

	</div>
	<div class="float_right padding5 paging">
		<div class="float_left padding_top4">
		<span class="paging_disabled"><a href="javascript:;">上一页</a></span>
		<span class="paging_current"><a href="javascript:;">1</a></span>
		<span><a href="javascript:;">2</a></span>
		<span><a href="javascript:;">3</a></span>
		<span><a href="javascript:;">4</a></span>
		<span><a href="javascript:;">5</a></span>
		<span>...</span>
		<span><a href="javascript:;">20</a></span>
		<span><a href="javascript:;">下一页</a></span>&nbsp;每页
		</div>
		<div class="float_left"><select autoWidth="true"><option>50</option><option>100</option><option>150</option></select></div>
		<div class="float_left padding_top4">条记录</div>
		<div class="clear"></div>
	</div>
	<div class="clear"></div>
</div>
</body>
</html>